gtk_widget_size_allocate_with_baselines does it automatically now.
GtkRequisition child_requisition;
GList *children;
- gtk_widget_set_allocation (widget, allocation);
-
for (children = priv->children; children; children = children->next)
{
child = children->data;
gtk_widget_size_allocate (child->widget, &child_allocation);
}
+
+ gtk_widget_set_clip (widget, allocation);
}
static double
gint calendar_xsep = calendar_get_xsep (calendar);
get_component_paddings (calendar, &padding, NULL, NULL, NULL);
- gtk_widget_set_allocation (widget, allocation);
if (priv->display_flags & GTK_CALENDAR_SHOW_WEEK_NUMBERS)
{
bin = GTK_BIN (widget);
- gtk_widget_set_allocation (widget, allocation);
-
if (!gtk_widget_get_has_window (widget))
{
child_allocation.x = allocation->x;
GtkRequisition child_requisition;
GList *children;
- gtk_widget_set_allocation (widget, allocation);
-
if (gtk_widget_get_has_window (widget))
{
if (gtk_widget_get_realized (widget))
gtk_invisible_size_allocate (GtkWidget *widget,
GtkAllocation *allocation)
{
- gtk_widget_set_allocation (widget, allocation);
+ gtk_widget_set_clip (widget, allocation);
}
GtkLayoutPrivate *priv = layout->priv;
GList *tmp_list;
- gtk_widget_set_allocation (widget, allocation);
-
tmp_list = priv->children;
while (tmp_list)
menu_shell = GTK_MENU_SHELL (widget);
priv = menu->priv;
- gtk_widget_set_allocation (widget, allocation);
-
get_menu_padding (widget, &padding);
g_free (priv->heights);
gint down_slider_offset = 0;
GtkRequisition child_requisition;
- gtk_widget_set_allocation (widget, allocation);
-
/* No path is set; we don't have to allocate anything. */
if (path_bar->priv->button_list == NULL)
{
GtkAllocation child_clip;
GtkAllocation clip = *allocation;
- gtk_widget_set_allocation (widget, allocation);
child = gtk_bin_get_child (GTK_BIN (widget));
if (child)
{
widget_allocation.width != allocation->width ||
widget_allocation.height != allocation->height;
- gtk_widget_set_allocation (widget, allocation);
-
/* distribute width/height among child windows. Ensure all
* windows get at least a 1x1 allocation.
*/
GtkAllocation child_allocation;
GtkWidget *child;
- gtk_widget_set_allocation (widget, allocation);
-
child = gtk_bin_get_child (GTK_BIN (widget));
if (child && gtk_widget_get_visible (child))
{
if (allocation->width != old_width)
width_changed = TRUE;
- gtk_widget_set_allocation (widget, allocation);
-
/* We size-allocate the columns first because the width of the
* tree view (used in updating the adjustments below) might change.
*/
g_assert (allocation != NULL);
g_assert (allocation_out != NULL);
- gtk_widget_set_allocation (widget, allocation);
-
child_allocation.x = 0;
child_allocation.y = 0;
child_allocation.width = allocation->width;